﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Husb.Util;
using Husb.Util.Enum;

using CentralOffice.PublicAffair.Data;
using CentralOffice.PublicAffair.BusinessActions;

using NoticeTable = CentralOffice.PublicAffair.Data.NoticeDataSet.NotificationsDataTable;
using NoticeRow = CentralOffice.PublicAffair.Data.NoticeDataSet.NotificationsRow;
using System.Collections.Specialized;

namespace CentralOffice.WebClient.desktop.notify
{
    public partial class _default : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void odsNotifition_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
        {
            IOrderedDictionary parameters = e.InputParameters;
            NoticeRow task = (new NoticeDataSet()).Notifications.NewNotificationsRow();
            task.Accepter = CommonUtil.TrimAll(ApplicationContext.ActualUserName);
            //parameters["whereClause"] = task.FilterExpression;
            parameters["whereClause"] = task.FilterExpression + " AND IsDeleted = 0 OR Accepter = '*' ";
            //parameters.Remove("Id");
        }
    }
}
